package cn.wolfcode.p2p.business.mapper;

import cn.wolfcode.p2p.business.domain.ActiveWater;

import java.math.BigDecimal;
import java.util.List;

public interface ActiveWaterMapper{
    int deleteByPrimaryKey(Long id);

    int insert(ActiveWater record);

    ActiveWater selectByPrimaryKey(Long id);

    List<ActiveWater> selectAll();

    int updateByPrimaryKey(ActiveWater record);
    /**
     * 截断活跃流水表
     */
    void truncateTable();

    /**
     * 根据类型统计总金额
     * @param type
     * @return
     */
    BigDecimal listAmountByType(int type);
}